package com.isale.model.db;

import com.isale.common.model.db.BaseDbEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 订单表
 * 数据库表【isale_order】对应的entity对象
 *
 * @author  bjs
 * @date 2016-11-15 11:15:56
*/
@Entity
@Table(name = "isale_order")
public class IsaleOrder extends BaseDbEntity implements Serializable {


// 订单编码
@Column(name = "order_code", nullable = false)
private java.lang.String orderCode;


// 订单来源：淘宝/京东
@Column(name = "order_from", nullable = false)
private java.lang.String orderFrom;


// 订单商品数量
@Column(name = "order_goods_num", nullable = false)
private java.lang.Integer orderGoodsNum;


// 计佣金额
@Column(name = "commission_price", nullable = false)
private java.lang.String commissionPrice;


// 下单时间
@Column(name = "order_create_time", nullable = false)
private java.util.Date orderCreateTime;


// 订单完成时间
@Column(name = "order_fisish_time", nullable = false)
private java.util.Date orderFisishTime;


// 结算时间
@Column(name = "settle_account_time", nullable = false)
private java.util.Date settleAccountTime;


// 实际结算收入
@Column(name = "settle_income", nullable = false)
private java.lang.String settleIncome;


// 广告位名称
@Column(name = "ad_position", nullable = false)
private java.lang.String adPosition;


// 平台
@Column(name = "plantform", nullable = false)
private java.lang.String plantform;






    // ================================================================================================



    /**
     * 获取对象的属性【订单编码】
     *
     * @return java.lang.String
     */
public java.lang.String getOrderCode() {
        return orderCode;
        }

/**
 * 设置对象的属性【订单编码】
 * @param orderCode
 */
public void setOrderCode(java.lang.String orderCode) {
        this.orderCode = orderCode;
        }

    /**
     * 获取对象的属性【订单来源：淘宝/京东】
     *
     * @return java.lang.String
     */
public java.lang.String getOrderFrom() {
        return orderFrom;
        }

/**
 * 设置对象的属性【订单来源：淘宝/京东】
 * @param orderFrom
 */
public void setOrderFrom(java.lang.String orderFrom) {
        this.orderFrom = orderFrom;
        }

    /**
     * 获取对象的属性【订单商品数量】
     *
     * @return java.lang.Integer
     */
public java.lang.Integer getOrderGoodsNum() {
        return orderGoodsNum;
        }

/**
 * 设置对象的属性【订单商品数量】
 * @param orderGoodsNum
 */
public void setOrderGoodsNum(java.lang.Integer orderGoodsNum) {
        this.orderGoodsNum = orderGoodsNum;
        }

    /**
     * 获取对象的属性【计佣金额】
     *
     * @return java.lang.String
     */
public java.lang.String getCommissionPrice() {
        return commissionPrice;
        }

/**
 * 设置对象的属性【计佣金额】
 * @param commissionPrice
 */
public void setCommissionPrice(java.lang.String commissionPrice) {
        this.commissionPrice = commissionPrice;
        }

    /**
     * 获取对象的属性【下单时间】
     *
     * @return java.util.Date
     */
public java.util.Date getOrderCreateTime() {
        return orderCreateTime;
        }

/**
 * 设置对象的属性【下单时间】
 * @param orderCreateTime
 */
public void setOrderCreateTime(java.util.Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
        }

    /**
     * 获取对象的属性【订单完成时间】
     *
     * @return java.util.Date
     */
public java.util.Date getOrderFisishTime() {
        return orderFisishTime;
        }

/**
 * 设置对象的属性【订单完成时间】
 * @param orderFisishTime
 */
public void setOrderFisishTime(java.util.Date orderFisishTime) {
        this.orderFisishTime = orderFisishTime;
        }

    /**
     * 获取对象的属性【结算时间】
     *
     * @return java.util.Date
     */
public java.util.Date getSettleAccountTime() {
        return settleAccountTime;
        }

/**
 * 设置对象的属性【结算时间】
 * @param settleAccountTime
 */
public void setSettleAccountTime(java.util.Date settleAccountTime) {
        this.settleAccountTime = settleAccountTime;
        }

    /**
     * 获取对象的属性【实际结算收入】
     *
     * @return java.lang.String
     */
public java.lang.String getSettleIncome() {
        return settleIncome;
        }

/**
 * 设置对象的属性【实际结算收入】
 * @param settleIncome
 */
public void setSettleIncome(java.lang.String settleIncome) {
        this.settleIncome = settleIncome;
        }

    /**
     * 获取对象的属性【广告位名称】
     *
     * @return java.lang.String
     */
public java.lang.String getAdPosition() {
        return adPosition;
        }

/**
 * 设置对象的属性【广告位名称】
 * @param adPosition
 */
public void setAdPosition(java.lang.String adPosition) {
        this.adPosition = adPosition;
        }

    /**
     * 获取对象的属性【平台】
     *
     * @return java.lang.String
     */
public java.lang.String getPlantform() {
        return plantform;
        }

/**
 * 设置对象的属性【平台】
 * @param plantform
 */
public void setPlantform(java.lang.String plantform) {
        this.plantform = plantform;
        }

        // ================================================================================================

        public String toString(){
            StringBuffer sb = new StringBuffer();
            sb.append("IsaleOrder=====>");
            sb.append("{");
                                sb.append("id=>"+this.id).append(", ");
                                sb.append("orderCode=>"+this.orderCode).append(", ");
                                sb.append("orderFrom=>"+this.orderFrom).append(", ");
                                sb.append("orderGoodsNum=>"+this.orderGoodsNum).append(", ");
                                sb.append("commissionPrice=>"+this.commissionPrice).append(", ");
                                sb.append("orderCreateTime=>"+this.orderCreateTime).append(", ");
                                sb.append("orderFisishTime=>"+this.orderFisishTime).append(", ");
                                sb.append("settleAccountTime=>"+this.settleAccountTime).append(", ");
                                sb.append("settleIncome=>"+this.settleIncome).append(", ");
                                sb.append("adPosition=>"+this.adPosition).append(", ");
                                sb.append("plantform=>"+this.plantform).append(", ");
                                sb.append("createTime=>"+this.createTime).append(", ");
                                sb.append("updateTime=>"+this.updateTime).append(", ");
                        sb.append("}");
            return sb.toString();
        }

}